<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #app {
            margin: 50px;
        }

        .title {
            font-weight: bold;
            margin: 50px 0;
            text-align: center;
            font-size: 20px;
        }

        .block {
            margin: 50px 0;
        }

        .block input {
            height: 40px;
            width: 100%;
            border: none;
            outline: none;
            background-color: #f5f5f5;
            padding-left: 20px;
            border-radius: 20px;
            box-sizing: border-box;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="title">登录页</div>
        <div class="block">
            <input type="text" placeholder="账号" v-model="user">
        </div>
        <div class="block">
            <input type="password" placeholder="密码" v-model="pass">
        </div>
        <div class="block">
            <input type="button" value="登录" @click="login">
        </div>
    </div>

    <script src="vue-2.5.21.js"></script>
    <script src="index-输入框的绑定-登录.js"></script>
</body>

</html>